#include <iostream>
#include <memory>
using namespace std;
class perosn1{
public:
    virtual void show(){
        cout<<"person1对象"<<endl;
    }
};
class person2:public perosn1{
public:
    virtual void show(){
        cout<<"person2对象"<<endl;
    }
};
int main()
{
    unique_ptr<perosn1> pu1;
    pu1=unique_ptr<perosn1>(new person2);
    pu1->show();
    return 0;
}